#Remaining Seized R Master File
#Required Packages ####
library(tidyverse)
library(readstata13)
library(countrycode)
library(ggplot2)
library(tidyr)
library(dplyr)
library(rworldmap)
library(RColorBrewer)
library(Hmisc)
library(viridis)
library(tm)
library(XML)
library(rvest)
library(RCurl)
library(pdftools)
library(SnowballC)
library(reshape2)
library(knitr)
library(xtable)
library(corrplot)
library(rpart)
library(partykit)
library(caTools)
library(AppliedPredictiveModeling)
library(caret)
library(pROC)
library(irr)
#Change working directory####
setwd("C:/Users/Matt 2/Box/Shareable/UN Peacekeeping/ISQ/Final Submission/Data")

#Figure 1####
source("Figure 1.R",echo=T)

#Figure 2####
source("Figure 2.R", echo=T)

#Figures 3####
source("Figure 3.R", echo=T)

#Figure 4####
source("Figure 4.R", echo=T)

#Table 2####
source("Table 2.R", echo=T)

#Appendix Begins Here
#Figure A1####
source("Figure A1.R", echo=T)

#Figure A2####
source("Figure A2.R", echo=T)

#Figure A3####
source("Figure A3.R", echo=T)

#Random Forest and Table A4####
#Note: Random Forest takes a few minutes to run
source("Random Forest.R", echo=T)
